<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?include "settings.tbh"
include "html_common.tbh"
if NOT verifySession() then
	setsend("Brak dostepu")
	goto finish
end if?>
<head>
  <meta http-equiv="Content-Type"
 content="text/html; charset=utf-8"/>
  <title>Ustawienia</title>
  <style type="text/css"/>
<?
  Dim x As Byte
  Dim s As String
  romfile.open("style.css")
  Do
     x=sock.txfree
     s=romfile.getdata(x)
     sock.setdata(s)
     sock.send
  Loop While Len(s)=x
?>
  </style>
</head>
<body>
<div class="wrapper">
<div class="warpper-top">
<div class="top-sh1"></div>
<div class="banner-area">
<div class="banner-sh" style="background:url(left-sh-1.png) no-repeat right top"></div>
<div class="banner-bg1">
<div class="banner-txt">
<div class="banner-txt-left">
Panel zarządzania
</div>
</div>
<div class="nav-area">
<ul class="navigation">
 <li><a href="wizualizacja.html?sid=<?setsend(getSessionID())?>">Wizualizacja</a></li>
  <li><a href="nastawy.html?sid=<?setsend(getSessionID())?>">Nastawy temperatur</a></li>
  <li><a href="settings.html?sid=<?setsend(getSessionID())?>">Ustawienia</a></li>
  <li><a href="#">Pomoc</a></li>
</ul>
</div>
<div class="nav-sh"></div>
</div>
<div class="banner-sh" style="background:url(right-sh-1.png) no-repeat left top"></div>
</div>
</div>
<div class="warpper-mid">
<div class="mid-left">
<h2 style="padding: 20px 0px 5px 30px;">Ustawienia</h2>
<p class="txt-2" style="padding: 10px 0px 5px 30px;"> 
Ustawienia logowania:
</p>
<table rules="none" style="margin: 10px 0px 0px 50px; border:1px solid green;">
<form  action="saveUser.html" method="get">
<tr>
<td style="min-width:150px">Login:</td> <td><input type="text" name="login" value="<? sock.setdata(readLogin()) ?>"></td>
</tr>
<tr>
<td style="min-width:150px">Hasło dostępu www:</td><td><input type="text" name="wwwpasswd" ></td>
</tr>
<tr>
<td style="min-width:150px">Hasło aplikacji mobilnej:</td><td><input type="text" name="mobilepasswd"></td>
</tr>
<tr><td>
<input type="submit" value="OK">
</td></tr>
</form> 
</table>
</br>
<p class="txt-2" style="padding: 10px 0px 5px 30px;"> 
Ustawienia sieciowe:
</p>
<table rules="none" style="margin: 10px 0px 0px 50px; border:1px solid green;">
<form  action="saveNetwork.html" method="get">
<tr>
<td style="min-width:150px">Adres ip:</td> <td><input type="text" name="ipaddress" value="<? sock.setdata(readIp()) ?>"></td>
</tr>
<tr>
<td style="min-width:150px">Maska sieciowa:</td><td><input type="text" name="networkmask" value="<? sock.setdata(readNetmask()) ?>"></td>
</tr>
<tr>
<td style="min-width:150px">Brama:</td><td><input type="text" name="gateway" value="<? sock.setdata(readGateway()) ?>"></td>
</tr>
<tr>
<td style="min-width:150px">Port modbus:</td><td><input type="text" name="modbus" value="<? sock.setdata(readModbusPort()) ?>" ></td>
</tr>
<tr><td>
<input type="submit" value="OK">
</td></tr>
</form> 
</table>


</div>

<div class="warpper-bot">
<div class="footer-right">


<p class="footer-txt">jakas stopka</p>
</div>
</div>
</div>
</div>
</body>
<?finish:?>
</html>
